import java.util.Arrays;

/**
 * Description: 测试类
 * Designer: jack
 * Date: 2017/9/2
 * Version: 1.0.0
 */
public class Test {
    public static void main(String[] args) {
        ErgodicList<Integer> integers = new ErgodicList<>(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9));
        System.out.println("------------反向遍历结果-------------");
        integers.reversed().forEach(System.out::println);
        System.out.println("------------随机遍历结果--------------");
        integers.random().forEach(System.out::println);
        System.out.println("------------------------------------");
        System.out.println(integers);
    }
}
